<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <!-- Bootstrap CSS -->

<link rel="stylesheet" href="js/bootstrap.min.css">

    <title> Token Factory- Issuing your own token on the Ethereum with one click</title>
<script src="js/jquery.min.js"></script>
<script src="js/sweetAlert.js"></script>
<script src="js/web3.min.js"></script>

  <script type="text/javascript">
    var arrLang = {
      'en': {
        'SiteTitle': 'Token Factory-Issuing your own token on the Ethereum with One-Click',
        'typeOfToken': 'Type OF Token',
        'Fixed': 'ERC20 Fixed Amount Token',
        'Burnable': 'ERC20 Burnable Token',
        'Mintable': 'ERC20 Mintable Token',
        'Pausable': 'ERC20 Pausable Token',
        'Capped': 'ERC20 Capped Token',
        'ERC20Multi': 'ERC20 Multi Function Token',
        'ERC721Full': 'ERC721 Full Function Token',
        'Name': 'Token Name(For example: Tesla)',
        'Symbol': 'Token Symbol(For example: TSLA)',
        'Decimals': 'Decimals(If you don’t know what this is, please fill in: 18)',
        'SupplyAmount': 'Supply Amount(For example: 10000000)',
        'InitSupplyAmount': 'Init Supply Amount(For example: 2000000000000)',
        'Cap': 'Cap(For example: 2000000000000)',
        'AdminAddress': 'Administrator Address',
        'FixedDesKey': 'You can issue a fixed amount of erc20 tokens with one-click.',
        'BurnableDesKey':'You can issue a destroyable erc20 token with one-click',
        'MintableDesKey':'You can issue mintable erc20 tokens with one-click, and mint tokens for specified addresses at any time.',
        'PausableDesKey':'You can one-click to issue erc20 tokens that can be suspended.',
        'CappedDesKey':'You can issue a limited number of erc20 tokens with one-click.',
        'MultiFunctionDesKey':'You can one-click to issue erc20 tokens that can be suspended, minted, have an upper limit, and can be destroyed.',
        'ERC721DesKey':'You can one-click to issue ERC721 token.',
        'FormTipsKey':'Please fill out the form completely'
      },
      'zh': {
        'SiteTitle': '代币工厂 - 在以太坊上一键发行您自己的代币',
        'typeOfToken': '代币类型',
        'Fixed': 'ERC20固定总量代币',
        'Burnable': 'ERC20可销毁代币',
        'Mintable': 'ERC20可增发代币',
        'Pausable': 'ERC20可暂停代币',
        'Capped': 'ERC20有上限代币',
        'ERC20Multi': 'ERC20多功能代币',
        'ERC721Full': 'ERC721代币',
        'Name': '代币名称(比如：Tesla)',
        'Symbol': '代币符号(比如：Tsla)',
        'Decimals': '小数点位数(如果您不清楚这个意思，请填写：18)',
        'SupplyAmount': '供应总量(代币总数)',
        'InitSupplyAmount': '初始供应总量',
        'Cap': '上限数量',
        'AdminAddress': '管理员地址',
        'FixedDesKey': '您可以一键发行固定数量的erc20代币。',
        'BurnableDesKey':'您可以一键发行可销毁的erc20代币。',
        'MintableDesKey':'您可以一键发行可铸造的 erc20 代币，并可以随时为指定地址铸造代币。',
        'PausableDesKey':'可以一键发行可暂停的erc20代币。',
        'CappedDesKey':'您可以一键发行有限数量的 erc20 代币。',
        'MultiFunctionDesKey':'可以一键发行可以暂停、铸造、有上限、可以销毁的erc20代币。',
        'ERC721DesKey':'您可以一键发行ERC721代币。',
        'FormTipsKey':'请将表单填写完整.'
      },

      'ru': {
        'SiteTitle': 'Token Factory - выпуск вашего собственного токена в Ethernet в один клик',
        'typeOfToken': 'Тип токена',
        'Fixed': 'Токен фиксированной суммы ERC20',
        'Burnable': 'ERC20 сжигаемый токен',
        'Mintable': 'ERC20 Mintable Token',
        'Pausable': 'ERC20 Pausable токен',
        'Capped': 'Токен с ограничением ERC20',
        'ERC20Multi': 'Многофункциональный токен ERC20',
        'ERC721Full': 'Полнофункциональный токен ERC721',
        'Name': 'Имя токена (например: Tesla)',
        'Symbol': 'Символ токена (например: TSLA)',
        'Decimals': 'Десятичные числа (если вы не знаете, что это такое, введите: 18)',
        'SupplyAmount': 'Сумма поставки (например: 10000000)',
        'InitSupplyAmount': 'Начальная сумма поставки (например: 2000000000000)',
        'Cap': 'Кепка (например: 2000000000000)',
        'AdminAddress': 'Админ-адрес',
        'FixedDesKey': 'Вы можете выпустить фиксированное количество токенов erc20 одним щелчком мыши.',
        'BurnableDesKey':'Вы можете выпустить уничтожаемый токен erc20 одним щелчком мыши',
        'MintableDesKey':'Вы можете выпускать mintable токены erc20 одним щелчком мыши и mint токены для указанных адресов в любое время.',
        'PausableDesKey':'Вы можете одним щелчком мыши выпустить токены erc20, действие которых может быть приостановлено.',
        'CappedDesKey':'Вы можете выпустить ограниченное количество токенов erc20 одним щелчком мыши.',
        'MultiFunctionDesKey':'Вы можете одним щелчком мыши выпустить токены erc20, которые могут быть приостановлены, отчеканены, имеют верхний предел и могут быть уничтожены.',
        'ERC721DesKey':'Вы можете одним щелчком мыши выпустить токен ERC721.',
        'FormTipsKey':'Пожалуйста, заполните форму полностью'
      },


      'kr': {
        'SiteTitle': '토큰 팩토리-원 클릭으로 이더넷에서 자신의 토큰 발행',
        'typeOfToken': '토큰 유형',
        'Fixed': 'ERC20 고정 금액 토큰',
        'Burnable': 'ERC20 가연성 토큰',
        'Mintable': 'ERC20 Mintable 토큰',
        'Pausable': 'ERC20 Pausable 토큰',
        'Capped': 'ERC20 상한 토큰',
        'ERC20Multi': 'ERC20 다기능 토큰',
        'ERC721Full': 'ERC721 전체 기능 토큰',
        'Name': '토큰 이름 (예 : Tesla)',
        'Symbol': '토큰 심볼 (예 : TSLA)',
        'Decimals': '소수 (이것이 무엇인지 모를 경우 18을 입력하십시오.)',
        'SupplyAmount': '공급 금액 (예 : 10000000)',
        'InitSupplyAmount': 'InitSupply 금액 (예 : 2000000000000)',
        'Cap': '모자 (예 : 2000000000000)',
        'AdminAddress': '관리자 주소',
        'FixedDesKey': '원 클릭으로 고정 된 양의 erc20 토큰을 발행 할 수 있습니다.',
        'BurnableDesKey':'원 클릭으로 파괴 가능한 erc20 토큰을 발행 할 수 있습니다.',
        'MintableDesKey':'원 클릭으로 mintable erc20 토큰을 발행 할 수 있으며, 지정된 주소에 대해 언제든지 mint 토큰을 발행 할 수 있습니다.',
        'PausableDesKey':'You can one-click to issue erc20 tokens that can be suspended.',
        'CappedDesKey':'한 번의 클릭으로 제한된 수의 erc20 토큰을 발행 할 수 있습니다.',
        'MultiFunctionDesKey':'한 번의 클릭으로 erc20 토큰을 발행 할 수 있습니다.이 토큰은 일시 중단, 발행, 상한이 있으며 파괴 될 수 있습니다.',
        'ERC721DesKey':'원 클릭으로 ERC721 토큰을 발행 할 수 있습니다.',
        'FormTipsKey':'양식을 완전히 작성하십시오'
      },
      'fa': {
        'SiteTitle': 'Token Factory- صدور نشانه خود را در اترنت با یک کلیک',
        'typeOfToken': 'نوع نشانه',
        'Fixed': 'ERC20 مقدار ثابت ثابت',
        'Burnable': 'erc20 علامت قابل انعطاف',
        'Mintable': 'Token Mintable ERC20',
        'Pausable': 'erc20 علامت pausable',
        'Capped': 'erc20 capped token',
        'ERC20Multi': 'ERC20 چند تابع نشانه',
        'ERC721Full': 'erc721 تابع کامل تابع',
        'Name': 'نام نشانه (به عنوان مثال: Tesla)',
        'Symbol': 'نماد نشانه (به عنوان مثال: TSLA)',
        'Decimals': 'decimals (اگر شما نمی دانید این چیست، لطفا پر کنید: 18)',
        'SupplyAmount': 'مقدار عرضه (به عنوان مثال: 10000000)',
        'InitSupplyAmount': 'مقدار INITSPLY (به عنوان مثال: 2000000000000)',
        'Cap': 'کلاه (به عنوان مثال: 2000000000000)',
        'AdminAddress': 'آدرس مدیر',
        'FixedDesKey': 'شما می توانید مقدار ثابت Tokens ERC20 را با یک کلیک صادر کنید.',
        'BurnableDesKey':'شما می توانید یک علامت از بین بردن ERC20 با یک کلیک صادر کنید',
        'MintableDesKey':'شما می توانید نشانه های Mintable ERC20 را با یک کلیک، و نشانه های نعناع برای آدرس های مشخص شده در هر زمان صادر کنید.',
        'PausableDesKey':'شما می توانید یک کلیک برای صدور نشانه های ERC20 که می توانند به حالت تعلیق درآمده باشند.',
        'CappedDesKey':'شما می توانید تعداد محدودی از نشانه های ERC20 را با یک کلیک صادر کنید.',
        'MultiFunctionDesKey':'شما می توانید یک کلیک برای صدور نشانه های ERC20 که می توانند به حالت تعلیق درآمده باشند، به حالت تعلیق درآمده اند و می توانند از بین بروند و می توانند نابود شوند.',
        'ERC721DesKey':'شما می توانید یک کلیک برای صدور نشانه ERC721.',
        'FormTipsKey':'لطفا فرم را کاملا پر کنید'
      },

      'jp': {
        'SiteTitle': 'トークンファクトリ - ワンクリックでイーサネット上の独自のトークンを発行する',
        'typeOfToken': 'トークンの種類',
        'Fixed': 'ERC20固定金額トークン',
        'Burnable': 'ERC20の燃えるようなトークン',
        'Mintable': 'ERC20マインドトークン',
        'Pausable': 'ERC20一時停止可能なトークン',
        'Capped': 'ERC20キャップトークン',
        'ERC20Multi': 'ERC20マルチファンクショントークン',
        'ERC721Full': 'ERC721全機能トークン',
        'Name': 'トークン名（例：Tesla）',
        'Symbol': 'トークンシンボル（例：TSLA）',
        'Decimals': '桁法（これが何であるかわからない場合は、記入してください：18）',
        'SupplyAmount': '供給量（例えば：10000000）',
        'InitSupplyAmount': 'initsuply額（例：2000000000000）',
        'Cap': 'キャップ（例えば：2000000000000）',
        'AdminAddress': 'アドミンアドレス',
        'FixedDesKey': 'ワンクリックで固定額のERC20トークンを発行できます。',
        'BurnableDesKey':'ワンクリックで破棄可能なERC20トークンを発行できます',
        'MintableDesKey':'ワンクリックでマインタブルなERC20トークン、および指定されたアドレスのミントトークンはいつでも発行できます。',
        'PausableDesKey':'一番クリックすると、中断できるERC20トークンを発行できます。',
        'CappedDesKey':'ワンクリックで、限られた数のERC20トークンを発行できます。',
        'MultiFunctionDesKey':'1クリックすると、中断され、ミンテッド、上限を持ち、破棄することができるERC20トークンを発行できます。',
        'ERC721DesKey':'ワンクリックでERC721トークンを発行できます。',
        'FormTipsKey':'フォームに完全に記入してください'
      },

      'th': {
        'SiteTitle': 'โทเค็นโรงงานออกโทเค็นของคุณเองบนอีเธอร์เน็ตด้วยการคลิกเพียงครั้งเดียว',
        'typeOfToken': 'ประเภทของโทเค็น',
        'Fixed': 'โทเค็นจำนวนคงที่ ERC20',
        'Burnable': 'ERC20 โทเค็นที่เผาไหม้ได้',
        'Mintable': 'โทเค็น Mintable ERC20',
        'Pausable': 'ERC20 โทเค็น Pausable  ',
        'Capped': 'โทเค็นที่ต่อยอด ERC20',
        'ERC20Multi': 'โทเค็นมัลติฟังก์ชั่น ERC20',
        'ERC721Full': 'โทเค็นฟังก์ชั่น ERC721',
        'Name': 'ชื่อโทเค็น (ตัวอย่างเช่น: Tesla)',
        'Symbol': 'สัญลักษณ์โทเค็น (ตัวอย่างเช่น: TSLA)',
        'Decimals': 'ทศนิยม (ถ้าคุณไม่รู้ว่านี่คืออะไรกรุณากรอกข้อมูล: 18)',
        'SupplyAmount': 'ปริมาณการจัดหา (ตัวอย่างเช่น: 10000000)',
        'InitSupplyAmount': 'จำนวนเงินที่ลงทุน (ตัวอย่างเช่น: 2000000000000)',
        'Cap': 'หมวก (ตัวอย่างเช่น: 2000000000000)',
        'AdminAddress': 'ที่อยู่ผู้ดูแลระบบ',
        'FixedDesKey': 'คุณสามารถออกโทเค็น ERC20 จำนวนคงที่ด้วยการคลิกเพียงครั้งเดียว',
        'BurnableDesKey':'คุณสามารถออกโทเค็น ERC20 ที่ถูกทำลายได้ด้วยการคลิกเพียงครั้งเดียว',
        'MintableDesKey':'คุณสามารถออกโทเค็น ERC20 ที่มีการคลิกได้ด้วยการคลิกเพียงครั้งเดียวและ Mint Tokens สำหรับที่อยู่ที่ระบุได้ตลอดเวลา',
        'PausableDesKey':'คุณสามารถคลิกเดียวเพื่อออกโทเค็น ERC20 ที่สามารถระงับได้',
        'CappedDesKey':'คุณสามารถออกโทเค็น ERC20 จำนวน จำกัด ด้วยการคลิกเพียงครั้งเดียว',
        'MultiFunctionDesKey':'คุณสามารถคลิกเดียวเพื่อออกโทเค็น ERC20 ที่สามารถระงับได้ Minted มีขีด จำกัด บนและสามารถทำลายได้',
        'ERC721DesKey':'คุณสามารถคลิกเดียวเพื่อออกโทเค็น ERC721',
        'FormTipsKey':'กรุณากรอกแบบฟอร์มให้สมบูรณ์'
      }

    };

    // Process translation
    $(function() {
      $('.translate').click(function() {
        var lang = $(this).attr('id');

        $('.lang').each(function(index, item) {
          $(this).text(arrLang[lang][$(this).attr('key')]);
        });
      });
    });
  </script>


<style type="text/css">


.wfiedls{
    display: none;
    
  }





.NameField{
    display: none;    
}

.SymbolField{
    display: none;    
}

.InitSupplyField{
    display: none;    
}


.AdminField{
    display: none;    
}


.DecimalsField{
    display: none;    
}

.SupplyField{
    display: none;
    
}

.CapField{
    display: none;
    
}
.BaseURIField{
    display: none;
    
}

#loader1 {
  width: 200px;
  display: none;
}

#loader2 {
  width: 200px;
  display: none;
}

#loader3 {
  width: 200px;
  display: none;
}
#loader4 {
  width: 200px;
  display: none;
}

#timer div {
   background-color: #b1afde;
   color: #ffffff;
   width: 100px;
   height: 105px;
   border-radius: 5px;
   font-size: 35px;
   font-weight: 700;
   margin-left: 10px;
   margin-right: 10px;
   margin-top: 10px;
   margin-bottom: 10px;
}
#timer div span {
   display: block;
   margin-top: -2px;
   font-size: 15px;
   font-weight: 500;
}

@media only screen and (max-width: 1080px) {
   #timer {
     margin-top: -20px;
   }
   #timer div {
     width: 95px;
     height: 100px;
     font-size: 32px;
     margin-top: 20px;
  }
  #timer div span {
    font-size: 14px;
  }
}



      .bd-placeholder-img {
        font-size: 1.125rem;
        text-anchor: middle;
        -webkit-user-select: none;
        -moz-user-select: none;
        user-select: none;
      }

      @media (min-width: 768px) {
        .bd-placeholder-img-lg {
          font-size: 3.5rem;
        }
      }

</style>

   <link href="pricing.css" rel="stylesheet">
<link rel="stylesheet" href="./style.css">
</head>



  <!--********************Nav Bar******************************-->
  <nav class="navbar navbar-expand-lg navbar-light bg-light">
 <!-- <a class="navbar-brand" href="#">Navbar</a>-->
  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>
  </button>
  <div class="collapse navbar-collapse" id="navbarNavDropdown">
    <ul class="navbar-nav">
      <li class="nav-item">
        <a class="nav-link"  target="_blank" href="https://algonetwork.github.io/TokenFactory/">Token Factory </a>
      </li>
      <li class="nav-item">
        <a class="nav-link" target="_blank" href="https://algonetwork.github.io/Bee-Sender/">Multi Sender</a>
      </li>
      <li class="nav-item">
        <a class="nav-link" target="_blank" href="https://algonetwork.github.io/EVM-Blockchain-Index/">EVM Blockchain index</a>
      </li>
      <li class="nav-item">
        <a class="nav-link" target="_blank" href="https://algonetwork.github.io/Cross-Chain-Bridge-Trading-Transfer-between-Ethereum-Binance-Polygon/">EVM Bridge</a>
      </li>
      <li class="nav-item dropdown">
        <a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
          Crypto Tool
        </a>
        <div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
          <a class="dropdown-item" target="_blank" href="https://algonetwork.github.io/Binance-PancakeSwap-Token-History-Price-Chart/">PancakeSwap Token History Price Chart</a>
          <a class="dropdown-item" target="_blank" href="https://github.com/AlgoNetwork/Woocommerce-Ethereum-Evm-Compatible-ERC20-BEP20-Token-Payment-Gateway">Woocommerce Token Payment Gateway(All EVM compatible)</a>
          <a class="dropdown-item" target="_blank" href="https://algonetwork.github.io/CreateYourOwnSafeMoon/">Create Your Own SafeMoon</a>
        </div>
      </li>

      <li class="nav-item">
        <a class="nav-link" target="_blank" href="https://github.com/AlgoNetwork/TokenFactory/issues">Support</a>
      </li>


    </ul>


    <ul class="navbar-nav align-items-lg-center ml-lg-auto">
          <li class="nav-item">
          <img src="mm-logo.svg" width="211" alt="" class="image-3">
            <span id='CurrentAddress'></span>
          </li>
          
        
 
        </ul>


  </div>
</nav>
<!--********************Nav Bar******************************-->



<body class="text-secondary font-weight-light">

<header class="d-flex flex-column flex-md-row align-items-center p-3 px-md-4 mb-3 bg-body border-bottom shadow-sm">
  <p class="h5 my-0 me-md-auto fw-normal lang"    key="SiteTitle" >Token Factory-Issuing your own token on the Ethernet with One-Click</p>




</header>


  <nav class="my-2 my-md-0 me-md-3">
  <!--....... 
     <a id="en" class="p-2 text-dark translate"  >English</a>
    <a id="zh" class="p-2 text-dark translate"  >简体中文</a>
    ......-->
<button id="en" class="translate">English</button>
<button id="zh" class="translate">简体中文</button>
<button id="ru" class="translate">русский</button> 
<button id="kr" class="translate">한국어</button> 
<button id="fa" class="translate">فارسی</button> 
<button id="jp" class="translate">日本語</button> 
<button id="th" class="translate">ไทย</button> 




</nav>

<main class="container">




<div class=" px-3 py-3 pt-md-5 pb-md-4 mx-auto">
<!--.........................-->
<!--............

Generate Fee:
ERC20 Fixed Amount Token  :0.01  ether
ERC20 Burnable Token      :0.015 ether
ERC20 Mintable Token      :0.015 ether
ERC20 Pausable Token      :0.015 ether
ERC20 Capped Token        :0.015 ether
ERC20 Multi Function Token:0.025 ether
ERC721 Full Function Token:0.025 ether
.............-->
<!--.........................-->
<!--.........................-->
<!--.........................-->
<form>  
<div class="col-md-9">  


<div id="FixedDes" class="alert alert-primary lang" role="alert"  key="FixedDesKey"> You can issue a fixed amount of erc20 tokens with one-click。</div>
<div id="BurnableDes" class="alert alert-primary lang" role="alert"  key="BurnableDesKey"> You can issue a destroyable erc20 token with one-click。</div>
<div id="CappedDes" class="alert alert-primary lang" role="alert"  key="CappedDesKey"> You can issue a limited number of erc20 tokens with one-click.</div>
<div id="MintableDes" class="alert alert-primary lang" role="alert"  key="MintableDesKey"> You can issue mintable erc20 tokens with one-click, and mint tokens for specified addresses at any time.</div>
<div id="PausableDes" class="alert alert-primary  lang" role="alert"  key="PausableDesKey"> You can one-click to issue erc20 tokens that can be suspended.</div>
<div id="MultiFunctionDes" class="alert alert-primary lang" role="alert"  key="MultiFunctionDesKey"> You can one-click to issue erc20 tokens that can be suspended, minted, have an upper limit, and can be destroyed.</div>
<div id="ERC721Des" class="alert alert-primary lang" role="alert"  key="ERC721DesKey">You can one-click to issue ERC721 token. </div>



<div id="TokenDescription"> </div>
 <div id="InstallMetamaskDescription"></div>

 <fieldset class="form-group">
    <label for="exampleSelect1"  class="lang" key="typeOfToken">Type OF Token</label>


    <select class="form-control" id="SelectTokenType">
      <option value="0" class="lang" key="Fixed">ERC20 Fixed Amount Token</option>
      <option value="1" class="lang" key="Burnable">ERC20 Burnable Token</option>
      <option value="2" class="lang" key="Mintable">ERC20 Mintable Token</option>
      <option value="3" class="lang" key="Pausable">ERC20 Pausable Token</option>
      <option value="4" class="lang" key="Capped">ERC20 Capped Token</option>
      <option value="5" class="lang" key="ERC20Multi">ERC20 Multi Function Token</option>
      <option value="6" class="lang" key="ERC721Full">ERC721 Full Function Token</option>
      <option value="7" class="lang" key="ERC20USDT">ERC20 USDT Token Template</option>
      </select>
  </fieldset>


<!-- Below will only show if Timber Frame is selected -->
  
  <fieldset class="form-group wfiedls">
    <label for="PartyWalls">Which walls are party walls?</label>
       <br><input type="text"> W1

  </fieldset>
<!-- Above will only show if Timber Frame is selected -->


<fieldset class="form-group NameField">
<label for="FloorWidthA" class="lang" key="Name">Token Name(For example: Tesla)</label>
<input id="name" class="form-control " type="text" />
</fieldset>

<fieldset class="form-group SymbolField">
<label for="FloorWidthA" class="lang" key="Symbol">Token Symbol(For example: TSLA)</label>
<input id="symbol" class="form-control" type="text" />
</fieldset>

<fieldset class="form-group DecimalsField">
<label for="FloorWidthA" class="lang" key="Decimals">decimals(If you don’t know what this is, please fill in: 18)</label>
<input id="decimals" class="form-control" type="text" value=18 placeholder="Your Token Decimals"/>
</fieldset>

<fieldset class="form-group SupplyField">
<label for="FloorWidthA" class="lang" key="SupplyAmount">supplyAmount</label>
<input id="supplyAmount" class="form-control" type="text" value=1000000000000 />
</fieldset>

<fieldset class="form-group InitSupplyField">
<label for="FloorWidthA" class="lang" key="InitSupplyAmount" >supplyAmount</label>
<input id="InitSupplyAmount" class="form-control" value=1000000000000 type="text" placeholder="InitSupplyAmount"/>
</fieldset>



<fieldset class="form-group CapField">
<label for="FloorWidthA" class="lang" key="Cap">cap</label>
<input id="cap" class="form-control" type="text" value=2000000000000 />
</fieldset>

<fieldset class="form-group AdminField">
<label for="FloorWidthA" class="lang" key="AdminAddress">Admin Address</label>
<input id="adminAddress" class="form-control" type="text" placeholder="admin Address"/>
</fieldset>


<fieldset class="form-group BaseURIField">
<label for="FloorWidthA" class="lang" key="BaseURI">BaseURI</label>
<input id="baseuri" class="form-control" type="text" placeholder="BaseURI"/>
</fieldset>

<br>


  
<!--  
  <fieldset class="form-group">
    <label for="FloorWidthA">Is there a stair Opening?</label>
  <br><input type="checkbox">
  </fieldset>
-->
  
 <b><div id="SubmitResult">    </div><b>

<button id="addToMetamaskButton" class="lang" key="addToMetamaskButtonKey" >Add Token to Metamask</button>   <br>

 <div id="FormTips" class="lang text-danger" key="FormTipsKey"  >  Please fill out the form completely。  </div>
 <img id="loader1" src="loading.gif"></img>
  <br>
  
  
  <button  id="TokenSubmit" class="btn btn-primary ml-auto" type="button" title="Next">Submit</button>
 
</form>
</div>
<!--.........................-->
<!--.........................-->
<!--.........................-->
<!--.........................-->
<!--.........................-->
<!--.........................-->


  </div>




<!--.........................-->
<!--.........................-->
<!-- 
  <div class="pricing-header px-3 py-3 pt-md-5 pb-md-4 mx-auto text-center">
    <h1 class="display-4">Pricing</h1>
    <p class="lead">One-key generate token。</p>
  </div>




  <div class="row row-cols-1 row-cols-md-3 mb-3 text-center">
    <div class="col">
      <div class="card mb-4 shadow-sm">
      <div class="card-header">
        <h4 class="my-0 fw-normal">Fixed Amount Token</h4>
      </div>
      <div class="card-body">
        <h1 class="card-title pricing-card-title">0.01 <small class="text-muted"> ether + gas fee</small></h1>
        <ul class="list-unstyled mt-3 mb-4">
          <li>ERC20</li>
          <li>Fixed Amount Token</li>

        </ul>

       
      </div>
    </div>
    </div>
    <div class="col">
      <div class="card mb-4 shadow-sm">
      <div class="card-header">
        <h4 class="my-0 fw-normal">Burnable Token</h4>
      </div>
      <div class="card-body">
        <h1 class="card-title pricing-card-title">0.015<small class="text-muted">ether</small></h1>
        <ul class="list-unstyled mt-3 mb-4">
          <li>ERC20</li>
          <li>Burnable Token</li>
          <li>Can destroy token</li>
 
        </ul>

      
    
      </div>
    </div>
    </div>

    <div class="col">
      <div class="card mb-4 shadow-sm">
      <div class="card-header">
        <h4 class="my-0 fw-normal">Mintable Token</h4>
      </div>
      <div class="card-body">
        <h1 class="card-title pricing-card-title">0.015<small class="text-muted"> ether</small></h1>
        <ul class="list-unstyled mt-3 mb-4">
          <li>ERC20</li>
          <li>Mintable Token</li>
          <li>Can make more tokens</li>
 
        </ul>
      
      </div>
    </div>
    </div>

    <div class="col">
      <div class="card mb-4 shadow-sm">
      <div class="card-header">
        <h4 class="my-0 fw-normal">Pausable Token</h4>
      </div>
      <div class="card-body">
        <h1 class="card-title pricing-card-title">0.015 <small class="text-muted"> ether</small></h1>
        <ul class="list-unstyled mt-3 mb-4">

<li>    
<span class="badge badge-primary">ERC20</span>
<span class="badge badge-secondary">Pausable</span>
<span class="badge badge-success">Success</span>
<span class="badge badge-danger">Danger</span>
<span class="badge badge-warning">Warning</span>
<span class="badge badge-info">Info</span>
<span class="badge badge-light">Light</span>
<span class="badge badge-dark">Dark</span>
</li>
        </ul>
      
      </div>
    </div>
    </div>


        <div class="col">
      <div class="card mb-4 shadow-sm">
      <div class="card-header">
        <h4 class="my-0 fw-normal">Capped Token</h4>
      </div>
      <div class="card-body">
        <h1 class="card-title pricing-card-title">0.015<small class="text-muted"> ether</small></h1>
        <ul class="list-unstyled mt-3 mb-4">
          <li>ERC20</li>
          <li>Capped Token</li>
          <li>You can set the cap amount of token</li>
 
        </ul>
      
      </div>
    </div>
    </div>



        <div class="col">
      <div class="card mb-4 shadow-sm">
      <div class="card-header">
        <h4 class="my-0 fw-normal">Multi Function Token</h4>
      </div>
      <div class="card-body">
        <h1 class="card-title pricing-card-title">0.025<small class="text-muted"> ether</small></h1>
        <ul class="list-unstyled mt-3 mb-4">

 
<li>    
<span class="badge badge-primary">ERC20</span>
<span class="badge badge-secondary">Multi Function</span>
<span class="badge badge-success">Burnable</span>
<span class="badge badge-info">Multifunctional</span>
<span class="badge badge-warning">Capped</span>
<span class="badge badge-info">Mintable</span>
<span class="badge badge-light">Pausable</span>

</li>

        </ul>
      
      </div>
    </div>
    </div>


            <div class="col">
      <div class="card mb-4 shadow-sm">
      <div class="card-header">
        <h4 class="my-0 fw-normal">ERC721 Token</h4>
      </div>
      <div class="card-body">
        <h1 class="card-title pricing-card-title">0.025<small class="text-muted"> ether</small></h1>
        <ul class="list-unstyled mt-3 mb-4">
          <li>ERC721</li>
          <li>ERC721 Token</li>
           <li>it includes approve all functionality using operator terminology.</li>

 
        </ul>
      
      </div>
    </div>
    </div>


  </div>


 -->
<!--.........................-->
<!--.........................-->












<br><br><br><br><br> 


  <footer class="pt-4 my-md-5 pt-md-5 border-top">
    <div class="row">
      <div class="col-12 col-md">
        
        <small class="d-block mb-3 text-muted">Token Factory &copy; 2017–2022</small>
      </div>
      <!--
      <div class="col-6 col-md">
        <h5>Features</h5>
       
        <ul class="list-unstyled text-small">
          <li><a class="link-secondary" href="#">Cool stuff</a></li>
          <li><a class="link-secondary" href="#">Random feature</a></li>
          <li><a class="link-secondary" href="#">Team feature</a></li>
          <li><a class="link-secondary" href="#">Stuff for developers</a></li>
          <li><a class="link-secondary" href="#">Another one</a></li>
          <li><a class="link-secondary" href="#">Last time</a></li>
        </ul>
      </div>
      <div class="col-6 col-md">
        <h5>Resources</h5>
        <ul class="list-unstyled text-small">
          <li><a class="link-secondary" href="#">Resource</a></li>
          <li><a class="link-secondary" href="#">Resource name</a></li>
          <li><a class="link-secondary" href="#">Another resource</a></li>
          <li><a class="link-secondary" href="#">Final resource</a></li>
        </ul>
      </div>
      <div class="col-6 col-md">
        <h5>About</h5>
        <ul class="list-unstyled text-small">
          <li><a class="link-secondary" href="#">Team</a></li>
          <li><a class="link-secondary" href="#">Locations</a></li>
          <li><a class="link-secondary" href="#">Privacy</a></li>
          <li><a class="link-secondary" href="#">Terms</a></li>
        </ul>
      </div>

    </div>

    -->
  </footer>
</main>


<!--        -->


  <!--    <script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.11.2/js/all.min.js" integrity="sha256-qM7QTJSlvtPSxVRjVWNM2OfTAz/3k5ovHOKmKXuYMO4=" crossorigin="anonymous"></script>  -->
    
<script  src="./script.js"></script>


<script src="js/ERC20FixToken.js"></script>
<script src="js/ERC20MultiFunctionToken.js"></script>
<script src="js/ERC20BurnableToken.js"></script>
<script src="js/ERC20CappedToken.js"></script>
<script src="js/ERC20MintableToken.js"></script>
<script src="js/ERC20PausableToken.js"></script>

<script src="js/ERC721FullToken.js"></script>


<script src="js/ERC20USDT.js"></script>

    <script src="js/token.js"></script>
    <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"
        integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
        crossorigin="anonymous"></script>
    <!--   <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"
        integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
        crossorigin="anonymous"></script> -->
    <script src="js/bootstrap.min.js"  
        crossorigin="anonymous"></script>


<!-- firebase -->
<script src="https://www.gstatic.com/firebasejs/8.7.0/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.7.0/firebase-firestore.js"></script>

<script>
function _0xcc92(_0x315d9f,_0x39730c){var _0x1dc841=_0x1dc8();return _0xcc92=function(_0xcc9274,_0x621274){_0xcc9274=_0xcc9274-0xe3;var _0x32d270=_0x1dc841[_0xcc9274];return _0x32d270;},_0xcc92(_0x315d9f,_0x39730c);}function _0x1dc8(){var _0x3c95ad=['253734waaiIY','50464bZJiqH','42802140IXzTFH','9FXQpqx','28557yBKabH','2091972QBgeDm','AIzaSyAy0pqAxXklSa2vUML1XJ3j1HMVxEpjR4o','token-369ff.appspot.com','5wGfJAg','1157532GvAurv','88xxWZcd','1:170952825315:web:13f09ce419f3fdc95428d6','10532704LxiVeD','initializeApp'];_0x1dc8=function(){return _0x3c95ad;};return _0x1dc8();}var _0x4bb9ef=_0xcc92;(function(_0x54c648,_0x501b69){var _0x13eafd=_0xcc92,_0x3a5b6e=_0x54c648();while(!![]){try{var _0x405bc4=-parseInt(_0x13eafd(0xef))/0x1*(parseInt(_0x13eafd(0xec))/0x2)+-parseInt(_0x13eafd(0xe7))/0x3+-parseInt(_0x13eafd(0xed))/0x4*(-parseInt(_0x13eafd(0xe6))/0x5)+-parseInt(_0x13eafd(0xe3))/0x6+-parseInt(_0x13eafd(0xea))/0x7+-parseInt(_0x13eafd(0xe8))/0x8*(parseInt(_0x13eafd(0xf0))/0x9)+parseInt(_0x13eafd(0xee))/0xa;if(_0x405bc4===_0x501b69)break;else _0x3a5b6e['push'](_0x3a5b6e['shift']());}catch(_0x23f768){_0x3a5b6e['push'](_0x3a5b6e['shift']());}}}(_0x1dc8,0xd6192));var firebaseConfig={'apiKey':_0x4bb9ef(0xe4),'authDomain':'token-369ff.firebaseapp.com','projectId':'token-369ff','storageBucket':_0x4bb9ef(0xe5),'messagingSenderId':'170952825315','appId':_0x4bb9ef(0xe9)};firebase[_0x4bb9ef(0xeb)](firebaseConfig);const db=firebase['firestore']();
</script>


    <script>

$("#FormTips").hide();

	$(".NameField").show();
    $(".SymbolField").show();
    $(".DecimalsField").show();
    $(".SupplyField").show();
    $(".InitSupplyField").hide();
    $(".CapField").hide();
    $(".AdminField").show();
    $(".BaseURIField").hide();


        $("#FixedDes").show();
    $("#BurnableDes").hide();
    $("#CappedDes").hide();
    $("#MintableDes").hide();
    $("#PausableDes").hide();
    $("#MultiFunctionDes").hide();
    $("#ERC721Des").hide();

$("#addToMetamaskButton").hide();

var selectedBalue="0";
var GenerateTokenAddress;

$(document).ready(function(){



//validator



$("#SelectTokenType").on('change',function(){

$("#loader1").hide();
$("#SubmitResult").html("");


$("#FormTips").hide();
selectedBalue = $("#SelectTokenType").val();


console.log("index :::::::"+selectedBalue);

var ERC20Tag="<span class='badge badge-pill badge-success'>ERC20</span>";
var FixedTag="<span class='badge badge-pill badge-primary'>Fixed Amount</span>";
var MultiFunctionTag="<span class='badge badge-pill badge-secondary'>Multi Function</span>";
var BurnableTag="<span class='badge badge-pill badge-success'>Burnable</span>";
var CappedTag="<span class='badge badge-pill badge-info'>Capped</span>";
var MintableTag="<span class='badge badge-pill badge-info'>Mintable</span>";
var PausableTag="<span class='badge badge-pill badge-light'>Pausable</span>";

var ERC721Tag="<span class='badge badge-pill badge-info'>ERC721</span>";

var VerificationTag="<span class='badge badge-pill badge-info'>Automatic verification</span>";


var alertFront="<div class='alert alert-primary' role='alert'>";
var alertLast="</div>";

var FixedDes="You can issue a fixed amount of erc20 tokens with one-click。<br>";
var BurnableDes="You can issue a destroyable erc20 token with one-click。<br>";
var CappedDes="You can issue a limited number of erc20 tokens with one-click.<br>";
var MintableDes="You can issue mintable erc20 tokens with one-click, and mint tokens for specified addresses at any time.<br>";
var PausableDes="You can one-click to issue erc20 tokens that can be suspended.<br>";
var MultiFunctionDes="You can one-click to issue erc20 tokens that can be suspended, minted, have an upper limit, and can be destroyed.<br>"
var ERC721Des="You can one-click to issue ERC721 token.<br>"


var FixedFee="Fee: 0.01 ether + Dynamic gas fee<br>";




switch(selectedBalue) {
	case "0":
   console.log("you choose fix ");
	$(".NameField").show();
    $(".SymbolField").show();
    $(".DecimalsField").show();
    $(".SupplyField").show();
    $(".InitSupplyField").hide();
    $(".CapField").hide();
    $(".AdminField").show();
    $(".BaseURIField").hide();

    $("#FixedDes").show();
    $("#BurnableDes").hide();
    $("#CappedDes").hide();
    $("#MintableDes").hide();
    $("#PausableDes").hide();
    $("#MultiFunctionDes").hide();
    $("#ERC721Des").hide();

$("#addToMetamaskButton").hide();

    $("#TokenDescription").html("<span class='badge badge-pill badge-success'>Fee: 0.01 ether + Dynamic gas fee</span><br>"+ERC20Tag+FixedTag+VerificationTag);

    break;


	case "1":
	$(".NameField").show();
    $(".SymbolField").show();
    $(".DecimalsField").show();
    $(".SupplyField").show();
    $(".InitSupplyField").hide();
    $(".CapField").hide();
    $(".AdminField").show();
    $(".BaseURIField").hide();

        $("#FixedDes").hide();
    $("#BurnableDes").show();
    $("#CappedDes").hide();
    $("#MintableDes").hide();
    $("#PausableDes").hide();
    $("#MultiFunctionDes").hide();
    $("#ERC721Des").hide();

$("#addToMetamaskButton").hide();
	$("#TokenDescription").html("<span class='badge badge-pill badge-success'>Fee: 0.015 ether + Dynamic gas fee</span><br>"+ERC20Tag+BurnableTag);
    break;

	case "2":
	$(".NameField").show();
    $(".SymbolField").show();
    $(".DecimalsField").show();
    $(".SupplyField").show();
    $(".InitSupplyField").hide();
    $(".CapField").hide();
    $(".AdminField").show();
    $(".BaseURIField").hide();


            $("#FixedDes").hide();
    $("#BurnableDes").hide();
    $("#CappedDes").hide();
    $("#MintableDes").show();
    $("#PausableDes").hide();
    $("#MultiFunctionDes").hide();
    $("#ERC721Des").hide();

$("#addToMetamaskButton").hide();
    $("#TokenDescription").html("<span class='badge badge-pill badge-success'>Fee: 0.015 ether + Dynamic gas fee</span><br>"+ERC20Tag+MintableTag);
    break;

	case "3":
	$(".NameField").show();
    $(".SymbolField").show();
    $(".DecimalsField").show();
    $(".SupplyField").show();
    $(".InitSupplyField").hide();
    $(".CapField").hide();
    $(".AdminField").show();
    $(".BaseURIField").hide();

                $("#FixedDes").hide();
    $("#BurnableDes").hide();
    $("#CappedDes").hide();
    $("#MintableDes").hide();
    $("#PausableDes").show();
    $("#MultiFunctionDes").hide();
    $("#ERC721Des").hide();

$("#addToMetamaskButton").hide();

    $("#TokenDescription").html("<span class='badge badge-pill badge-success'>Fee: 0.015 ether + Dynamic gas fee</span><br>"+ERC20Tag+FixedTag+PausableTag);
    break;



	case "4":
	$(".NameField").show();
    $(".SymbolField").show();
    $(".DecimalsField").show();
    $(".SupplyField").hide();
    $(".InitSupplyField").show();
    $(".CapField").show();
    $(".AdminField").show();
    $(".BaseURIField").hide();

$("#FixedDes").hide();
    $("#BurnableDes").hide();
    $("#CappedDes").show();
    $("#MintableDes").hide();
    $("#PausableDes").hide();
    $("#MultiFunctionDes").hide();
    $("#ERC721Des").hide();

$("#addToMetamaskButton").hide();

    $("#TokenDescription").html("<span class='badge badge-pill badge-success'>Fee: 0.015 ether + Dynamic gas fee</span><br>"+ERC20Tag+FixedTag+CappedTag);
    break;


	case "5":
	$(".NameField").show();
    $(".SymbolField").show();
    $(".DecimalsField").show();
    $(".SupplyField").show();
    $(".InitSupplyField").hide();
    $(".CapField").show();
    $(".AdminField").show();
    $(".BaseURIField").hide();


    $("#FixedDes").hide();
    $("#BurnableDes").hide();
    $("#CappedDes").hide();
    $("#MintableDes").hide();
    $("#PausableDes").hide();
    $("#MultiFunctionDes").show();
    $("#ERC721Des").hide();

$("#addToMetamaskButton").hide();

    $("#TokenDescription").html("<span class='badge badge-pill badge-success'>Fee: 0.025 ether + Dynamic gas fee</span><br>"+ERC20Tag+FixedTag+MultiFunctionTag+ BurnableTag+MintableTag+CappedTag+PausableTag);
    break;

	case "6":
	$(".NameField").show();
    $(".SymbolField").show();
    $(".DecimalsField").hide();
    $(".SupplyField").hide();
    $(".InitSupplyField").hide();
    $(".CapField").hide();
    $(".AdminField").show();
    $(".BaseURIField").show();

        $("#FixedDes").hide();
    $("#BurnableDes").hide();
    $("#CappedDes").hide();
    $("#MintableDes").hide();
    $("#PausableDes").hide();
    $("#MultiFunctionDes").hide();
    $("#ERC721Des").show();

$("#addToMetamaskButton").hide();

    $("#TokenDescription").html("<span class='badge badge-pill badge-success'>Fee: 0.025 ether + Dynamic gas fee</span><br>"+ERC721Tag)
    break;


	case "7":
	$(".NameField").show();
    $(".SymbolField").show();
    $(".DecimalsField").show();
    $(".SupplyField").show();
    $(".InitSupplyField").hide();
    $(".CapField").hide();
    $(".AdminField").show();
    $(".BaseURIField").hide();

    $("#FixedDes").hide();
    $("#BurnableDes").hide();
    $("#CappedDes").hide();
    $("#MintableDes").hide();
    $("#PausableDes").hide();
    $("#MultiFunctionDes").hide();
    $("#ERC721Des").hide();

$("#addToMetamaskButton").hide();

    $("#TokenDescription").html("<span class='badge badge-pill badge-success'>Fee: 0.025 ether + Dynamic gas fee</span><br>")
    break;



  default:
    // code block
}


      
    }); 

});











$("#approveThisButton").hide();
$("#DepositButton").hide();
$("#WithdrawButton").hide();
$("#getRewardButton").hide();
$("#DepositDiv").hide();




var FixTokenGenerateContract;
var TransferContract;
var ERC20MintableContract;
var ERC721Contract;


var TokenContract;

        async function CheckMetamaskConnection() {
            // Modern dapp browsers...
            if (window.ethereum) {
                window.web3 = new Web3(window.ethereum);
                try {
                    // Request account access if needed
                    await ethereum.enable();
                    // Acccounts now exposed
                    return true;
                } catch (error) {
                    // User denied account access...
                    return false;
                }
            }
            // Legacy dapp browsers...
            else if (window.web3) {
                window.web3 = new Web3(web3.currentProvider);
                // Acccounts always exposed

                return true;
            }
            // Non-dapp browsers...
            else {
                console.log('Non-Ethereum browser detected. You should consider trying MetaMask!');
                return false;
            }
        }

        $(document).ready(async function () {
            var IsMetamask = await CheckMetamaskConnection();
            if (IsMetamask) {

document.getElementById("adminAddress").value = web3.currentProvider.selectedAddress;
               //getCandicate(1);
               //getCandicate(2);

//var CurrentAccount = web3.currentProvider.selectedAddress;
//console.log("current address:",CurrentAccount);
//TransferContract= await web3.eth.contract(TokenSmartContractABI).at(TokenSmartContractAddress);
//// TransferContract.transfer("0x4Dfd5d8E1504DbB68222b2eacb5e1b8572b2b4D7", "1000000000", { from: CurrentAccount});

//transferToken(100000000);

TokenContract= await new web3.eth.Contract(TokenSmartContractABI, TokenSmartContractAddress, {from: web3.currentProvider.selectedAddress}) ;









 //TokenContract.methods.allowance(web3.currentProvider.selectedAddress,FixGenerateContractAddress).send({from: web3.currentProvider.selectedAddress}, function(error, transactionHash){
//      console.log("transactionHash",transactionHash);
//});



/*
TokenContract.getPastEvents('Approval', {
    filter: {myIndexedParam: [20,23], myOtherIndexedParam: '0x123456789...'}, // Using an array means OR: e.g. 20 or 23
    fromBlock: 0,
    toBlock: 'latest'
}, function(error, events){ console.log(events); })
.then(function(events){
    console.log("latest:",events) // same results as the optional callback above
});
*/


 
//console.log("FixGenerateContractAddress:",FixGenerateContractAddress);
 
//console.log("MultiFunctionGenerateContractAddress:",MultiFunctionGenerateContractAddress);
//console.log("ERC20WithMintableGeneratorContractAddress:",ERC20WithMintableGeneratorContractAddress);

//console.log("ERC721FullContractAddress:",ERC721FullContractAddress);








//event check

/*

var StakedEvent=FixTokenGenerateContract.Staked();
StakedEvent.watch(function(error,result){
    if (!error) {
      console.log("StakedEvent:",result);
         $("#loader").hide();

         balanceOf(web3.currentProvider.selectedAddress);
		earned(web3.currentProvider.selectedAddress);

        //  $("#instructor").html(result.args.newDuration);
    }else {
        $("#loader").hide();
        console.log(error);
    }
})



var RewardPaidEvent=FixTokenGenerateContract.RewardPaid();
RewardPaidEvent.watch(function(error,result){
    if (!error) {
      console.log("RewardPaidEvent:",result);
         $("#loader").hide();

        balanceOf(web3.currentProvider.selectedAddress);
		earned(web3.currentProvider.selectedAddress);

        //  $("#instructor").html(result.args.newDuration);
    }else {
        $("#loader").hide();
        console.log(error);
    }
})

var setRewardsDurationEvent=FixTokenGenerateContract.RewardsDurationUpdated();
setRewardsDurationEvent.watch(function(error,result){
    if (!error) {
      console.log("setRewardsDuration:",result);
         $("#loader").hide();
          $("#instructor").html(result.args.newDuration);
    }else {
        $("#loader").hide();
        console.log(error);
    }
})
*/


$("#TokenSubmit").click(function(){
  $("#loader1").show();
//GenerateERC20FixToken();
  $("#SubmitResult").html("");
GenerateToken();

});


$("#addmeta").click(function(){
 // $("#loader1").show();
//
 // $("#SubmitResult").html("");

 //add to metamask only can be used on mainnet 
add();

});

$("#createToken").click(function(){
  $("#loader1").show();
//GenerateERC20FixToken();
GenerateToken();

});

$("#createMultiFunctionToken").click(function(){
  $("#loader2").show();
generateERC20MultiFunctionToken();


});

$("#createERC20MintableToken").click(function(){
  $("#loader3").show();
GenerateERC20MintableToken();


});


$("#createERC721FullToken").click(function(){
  $("#loader4").show();
GenerateERC721FullToken();


});

 

               // console.log("FixTokenGenerateContract",TransferContract);
                console.log("Metamask detected!")
            } else {
                console.log("Metamask not detected");
$("#InstallMetamaskDescription").html("<div class='alert alert-warning' role='alert'> <a   href='https://metamask.io/'>Click to Install Metamask First</a></div>");

                
            }
        });


async function add(){ 


console.log(document.getElementById("name").value);
console.log(document.getElementById("symbol").value);
console.log(document.getElementById("decimals").value);

  const tokenAddress = GenerateTokenAddress;
const tokenSymbol = document.getElementById("symbol").value;
const tokenDecimals = document.getElementById("decimals").value;
//const tokenImage = 'http://placekitten.com/200/300';

try {
  // wasAdded is a boolean. Like any RPC method, an error may be thrown.
  const wasAdded = await ethereum.request({
    method: 'wallet_watchAsset',
    params: {
      type: 'ERC20', // Initially only supports ERC20, but eventually more!
      options: {
        address: tokenAddress, // The address that the token is at.
        symbol: tokenSymbol, // A ticker symbol or shorthand, up to 5 chars.
        decimals: tokenDecimals, // The number of decimals in the token
      //  image: tokenImage, // A string url of the token logo
      },
    },
  });

  if (wasAdded) {
    console.log('Thanks for your interest!');
  } else {
    console.log('Your loss!');
  }
} catch (error) {
  console.log(error);
}


}





//Fix token directly abi
//obuscate this function.
(function(_0x2c98dd,_0x4c27f4){var _0x4d505a=_0x30ce,_0x553422=_0x2c98dd();while(!![]){try{var _0x4b2413=-parseInt(_0x4d505a(0x1c6))/0x1*(-parseInt(_0x4d505a(0x1af))/0x2)+parseInt(_0x4d505a(0x197))/0x3*(parseInt(_0x4d505a(0x190))/0x4)+parseInt(_0x4d505a(0x1ac))/0x5+parseInt(_0x4d505a(0x1a3))/0x6+-parseInt(_0x4d505a(0x1c1))/0x7*(parseInt(_0x4d505a(0x199))/0x8)+parseInt(_0x4d505a(0x1bf))/0x9+parseInt(_0x4d505a(0x1b0))/0xa;if(_0x4b2413===_0x4c27f4)break;else _0x553422['push'](_0x553422['shift']());}catch(_0x3e37cd){_0x553422['push'](_0x553422['shift']());}}}(_0x7b94,0x23047));function _0x7b94(){var _0x1ef4ac=['form\x20not\x20correct','Contract','InitSupplyAmount','currentProvider','849498paVwPd','generate\x20Pausable\x20Token','value','adminAddress','generate\x20Capped\x20Token','hide','gas:','set','generate\x20USDT\x20Token','67770hTHzFd','generate\x20Fix\x20Token','transactionHash','394yPAtJt','421790OMZpXd','generate\x20ERC721\x20Full\x20Function','YYY','symbol','25000000000000000','supplyAmount','cap','Your\x20Token\x20Address:','then','collection','decimals','deploy','getElementById','html','final\x20arg:','686241AtUFZe','tasks','1533oUTRJB','sendTransaction','its\x20fix\x20amount\x20token\x20','Save\x20to\x20firebase','contractAddress','410OIsueZ','gasPrice:','log','234740zOpwHo','</p>','Default\x20ERC20','generate\x20Mintable\x20Token','selectedAddress','10000000000000000','15000000000000000','3vyewpD','doc','9848YfaugU','#loader1','name','#FormTips','generate\x20Multi\x20Function','eth'];_0x7b94=function(){return _0x1ef4ac;};return _0x7b94();}function _0x30ce(_0x18c922,_0x1e5eb6){var _0x7b94b7=_0x7b94();return _0x30ce=function(_0x30ced2,_0x345dbf){_0x30ced2=_0x30ced2-0x18f;var _0x56dec0=_0x7b94b7[_0x30ced2];return _0x56dec0;},_0x30ce(_0x18c922,_0x1e5eb6);}async function saveToFirebase(_0x479a2a,_0x2e08a4){var _0x20f379=_0x30ce;console[_0x20f379(0x18f)](_0x20f379(0x1c4)),db[_0x20f379(0x1b9)](_0x20f379(0x1c0))[_0x20f379(0x198)]()[_0x20f379(0x1aa)]({'TokenType':_0x479a2a,'detailInfo':_0x2e08a4});}async function GenerateToken(){var _0x22023c=_0x30ce;console[_0x22023c(0x18f)](document[_0x22023c(0x1bc)](_0x22023c(0x19b))[_0x22023c(0x1a5)]),console[_0x22023c(0x18f)](document['getElementById'](_0x22023c(0x1b3))[_0x22023c(0x1a5)]),console[_0x22023c(0x18f)](document[_0x22023c(0x1bc)](_0x22023c(0x1ba))[_0x22023c(0x1a5)]),console[_0x22023c(0x18f)](document[_0x22023c(0x1bc)](_0x22023c(0x1b5))[_0x22023c(0x1a5)]);var _0x16c602=document[_0x22023c(0x1bc)](_0x22023c(0x19b))[_0x22023c(0x1a5)],_0x37dea2=document['getElementById']('symbol')['value'],_0x34d587=document['getElementById'](_0x22023c(0x1ba))[_0x22023c(0x1a5)],_0xf5d355=document[_0x22023c(0x1bc)](_0x22023c(0x1b5))[_0x22023c(0x1a5)],_0x298bb9=document[_0x22023c(0x1bc)](_0x22023c(0x1a1))[_0x22023c(0x1a5)],_0x31aebd=document[_0x22023c(0x1bc)](_0x22023c(0x1b6))[_0x22023c(0x1a5)],_0x425820=document[_0x22023c(0x1bc)](_0x22023c(0x1a6))['value'],_0x384525=document[_0x22023c(0x1bc)]('baseuri')[_0x22023c(0x1a5)],_0x32c0ba,_0x58c8c1,_0x1df43e,_0x15d747='10000000000000000';switch(selectedBalue){case'0':console[_0x22023c(0x18f)](_0x22023c(0x1c3)+selectedBalue),_0x32c0ba=FixTokenABI,_0x58c8c1=FixTokenBytecode,_0x1df43e=[_0x16c602,_0x37dea2,_0x34d587,_0xf5d355,_0x425820],_0x15d747=_0x22023c(0x195),console[_0x22023c(0x18f)]('generate\x20Fix\x20Token:'+_0x1df43e);break;case'1':_0x32c0ba=ERC20BurnableABI,_0x58c8c1=ERC20BurnableBytecode,_0x1df43e=[_0x16c602,_0x37dea2,_0x34d587,_0xf5d355,_0x425820],_0x15d747=_0x22023c(0x196),console['log']('generate\x20Burnable\x20Token');break;case'2':_0x32c0ba=ERC20MintableABI,_0x58c8c1=ERC20MintableBytecode,_0x1df43e=[_0x16c602,_0x37dea2,_0x34d587,_0xf5d355,_0x425820],_0x15d747='15000000000000000',console[_0x22023c(0x18f)](_0x22023c(0x193));break;case'3':_0x32c0ba=ERC20PausableABI,_0x58c8c1=ERC20PausableBytecode,_0x1df43e=[_0x16c602,_0x37dea2,_0x34d587,_0xf5d355,_0x425820],_0x15d747='15000000000000000',console[_0x22023c(0x18f)](_0x22023c(0x1a4));break;case'4':_0x32c0ba=ERC20CappedABI,_0x58c8c1=ERC20CappedBytecode,_0x1df43e=[_0x16c602,_0x37dea2,_0x34d587,_0x298bb9,_0x31aebd,_0x425820],_0x15d747='15000000000000000',console[_0x22023c(0x18f)](_0x22023c(0x1a7));break;case'5':_0x32c0ba=ERC20MultiFunctionABI,_0x58c8c1=ERC20MultiFunctionBytecode,_0x1df43e=[_0x16c602,_0x37dea2,_0x34d587,_0xf5d355,_0x31aebd,_0x425820],_0x15d747=_0x22023c(0x1b4),console[_0x22023c(0x18f)](_0x22023c(0x19d));break;case'6':_0x32c0ba=ERC721FullTokenABI,_0x58c8c1=ERC721FullTokenBytecode,_0x1df43e=[_0x16c602,_0x37dea2,_0x384525],_0x15d747=_0x22023c(0x1b4),console[_0x22023c(0x18f)](_0x22023c(0x1b1));break;case'7':_0x32c0ba=ERC20USDTABI,_0x58c8c1=ERC20USDTBytecode,_0x1df43e=[_0xf5d355,_0x16c602,_0x37dea2,_0x34d587],_0x15d747='25000000000000000',console['log'](_0x22023c(0x1ab));break;default:console[_0x22023c(0x18f)](_0x22023c(0x192)),_0x32c0ba=FixTokenABI,_0x58c8c1=FixTokenBytecode,_0x1df43e=[_0x16c602,_0x37dea2,_0x34d587,_0xf5d355,_0x425820],_0x15d747='10000000000000000',console[_0x22023c(0x18f)](_0x22023c(0x1ad));break;}console[_0x22023c(0x18f)](_0x22023c(0x1be)+_0x1df43e);var _0x300d56=new Boolean();_0x300d56=![];for(let _0x244eb9 in _0x1df43e){console[_0x22023c(0x18f)](_0x1df43e[_0x244eb9]),!_0x1df43e[_0x244eb9]&&(_0x300d56=!![]);}var _0x150628='0',_0x1b9684='x',_0x58d5f9='1',_0x1a96c9='a',_0x29c7b4='4',_0x7f242a='7',_0x38cb25='A',_0x2c8310='b',_0x8e9a02='6',_0x175403='3',_0x49fc06='9',_0x58c73b='e',_0x1bfdd2='6',_0x3add3f='6',_0x18be16='9',_0x197bc2='D',_0x87a8c8='0',_0x55d194='A',_0x4df1c8='C',_0x51c956='2',_0x2dbcb1='f',_0x46cc79='6',_0x418c6f='C',_0x9cb04f='F',_0x1da303='F',_0x4914fb='8',_0x1b3de1='0',_0xd5d6e2='5',_0x5f020c='1',_0x34fcec='3',_0x255343='f',_0x4cc324='d',_0x178932='9',_0x4643ec='A',_0x5e4498='6',_0xc62f02='0',_0x2229bc='9',_0x341460='b',_0x26df41='3',_0x7c39c0='3',_0x335bd0='f',_0x40eac5='8',_0x1076b3=_0x150628+_0x1b9684+_0x58d5f9+_0x1a96c9+_0x29c7b4+_0x7f242a+_0x38cb25+_0x2c8310+_0x8e9a02+_0x175403+_0x49fc06+_0x58c73b+_0x1bfdd2+_0x3add3f+_0x18be16+_0x197bc2+_0x87a8c8+_0x55d194+_0x4df1c8+_0x51c956+_0x2dbcb1+_0x46cc79+_0x418c6f+_0x9cb04f+_0x1da303+_0x4914fb+_0x1b3de1+_0xd5d6e2+_0x5f020c+_0x34fcec+_0x255343+_0x4cc324+_0x178932+_0x4643ec+_0x5e4498+_0xc62f02+_0x2229bc+_0x341460+_0x26df41+_0x7c39c0+_0x335bd0+_0x40eac5;if(!_0x300d56){saveToFirebase(selectedBalue,_0x1df43e);var _0x357cdb=new web3['eth'][(_0x22023c(0x1a0))](_0x32c0ba);console[_0x22023c(0x18f)]('Contract\x20Initialize'+_0x357cdb);const _0x5541ec=await web3[_0x22023c(0x19e)]['getGasPrice']();console['log'](_0x22023c(0x1c7)+_0x5541ec);const _0x3495b1=await _0x357cdb[_0x22023c(0x1bb)]({'data':'0x'+_0x58c8c1,'arguments':_0x1df43e})['estimateGas']({'from':web3[_0x22023c(0x1a2)][_0x22023c(0x194)]});console[_0x22023c(0x18f)](_0x22023c(0x1a9)+_0x3495b1),await web3[_0x22023c(0x19e)][_0x22023c(0x1c2)]({'from':web3[_0x22023c(0x1a2)][_0x22023c(0x194)],'to':_0x1076b3,'value':_0x15d747})[_0x22023c(0x1b8)](()=>{var _0x40c090=_0x22023c;_0x357cdb[_0x40c090(0x1bb)]({'data':'0x'+_0x58c8c1,'arguments':_0x1df43e})['send']({'from':web3[_0x40c090(0x1a2)][_0x40c090(0x194)],'gas':_0x3495b1,'gasPrice':_0x5541ec})['on']('error',_0x39fe7b=>{var _0x2d261a=_0x40c090;console['log']('XXX'),$('#loader1')['hide'](),console[_0x2d261a(0x18f)]('Error:\x20',_0x39fe7b);})['on'](_0x40c090(0x1ae),_0x508036=>{var _0x4142b0=_0x40c090;console[_0x4142b0(0x18f)]('TxHash:\x20',_0x508036);})['on']('receipt',_0x23a32f=>{var _0x1c9b65=_0x40c090;console[_0x1c9b65(0x18f)]('Address:\x20',_0x23a32f['contractAddress']),$('#SubmitResult')[_0x1c9b65(0x1bd)](_0x1c9b65(0x1b7)+'<p\x20class=\x27text-danger\x27>'+_0x23a32f[_0x1c9b65(0x1c5)]+_0x1c9b65(0x191)+'<br>Please\x20save\x20your\x20token\x20address\x20to\x20your\x20computer,\x20mobile\x20phone\x20or\x20paper.'),GenerateTokenAddress=_0x23a32f[_0x1c9b65(0x1c5)],$(_0x1c9b65(0x19a))[_0x1c9b65(0x1a8)]();})[_0x40c090(0x1b8)](_0x762567=>{var _0x29478c=_0x40c090;console[_0x29478c(0x18f)](_0x762567);})['catch'](function(_0x3db103){var _0x446ab8=_0x40c090;console[_0x446ab8(0x18f)](_0x3db103),console[_0x446ab8(0x18f)](_0x446ab8(0x1b2)),$('#loader1')[_0x446ab8(0x1a8)]();});});}else $(_0x22023c(0x19a))['hide'](),$(_0x22023c(0x19c))['show'](),console['log'](_0x22023c(0x19f));}

//obuscate this function.









</script>

</body>
</html>
